import request from '@/config/request.js';

// 获取文章列表
export const detailList = (params) => request.get('/business/columnDetail/list', params)

// 获取文章详情信息
export const detailById = (id) => request.get('/business/columnDetail/getInfoForApp/' + id)

// 新增文章详情信息
export const detailAdd = (params) => request.post('/business/columnDetail', params)

// 修改文章详情信息
export const detailModify = (params) => request.put('/business/columnDetail', params)

// 删除文章详情信息
export const detailDelete = (id) => request.delete('/business/columnDetail/' + id)

// 获取特别推荐文章列表
export const detailShareList = (params) => request.get('/business/columnDetail/shareList', params)

// 获取个人发布的文章
export const getUserList = (params) => request.get('/business/columnDetail/getUserList', params)
